package user.zc.exception;

import java.text.MessageFormat;

public interface ExcelExceptionAssert extends IResponseEnum,Assert {
    default ExcelException newException(Object... args) {
        String msg = MessageFormat.format(this.getMessage(), args);
        return new ExcelException(this, args, msg);
    }

    default ExcelException newException(Throwable t, Object... args) {
        String msg = MessageFormat.format(this.getMessage(), args);
        return new ExcelException(this, args, msg, t);
    }
}
